﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LibUpdate
{
    /// <summary>
    /// 下载事件通知实体
    /// </summary>
    public class DownEventArgs
    {
        private int _DownSize;
        private File _File;
        private LibUpdate.FileDownState _State;
        private string _ErrInfo;
        /// <summary>
        /// 当前文件在列表中的序列
        /// </summary>
        private int _FileIndex;

        /// <summary>
        /// 当前文件在列表中的序列
        /// </summary>
        public int FileIndex
        {
            get { return _FileIndex; }
            set { _FileIndex = value; }
        }
        /// <summary>
        /// 下载状态
        /// </summary>
        public FileDownState State
        {
            get
            {
                return _State;
            }
            set
            {
                _State = value;
            }
        }

        /// <summary>
        /// 当前下载数据
        /// </summary>
        public int DownSize
        {
            get
            {
                return _DownSize;
            }
            set
            {
                _DownSize = value;
            }
        }

        /// <summary>
        /// 文件描述对象
        /// </summary>
        public File File
        {
            get
            {
                return _File;
            }
            set
            {
                _File = value;
            }
        }

        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrInfo
        {
            get
            {
                return _ErrInfo;
            }
            set
            {
                _ErrInfo = value;
            }
        }
    }
}
